package exebuilder.core;

import exebuilder.data.Description;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;


public class AppMain extends Application {

  @Override
  public void start(Stage stage) {
    stage.setWidth(700);
    stage.setHeight(500);
    var root = ViewLoader.load("mainView");
    var rootScene = new Scene(root);
    stage.setScene(rootScene);
    stage.setResizable(false);
    stage.setTitle(Description.APP_TITLE);
    stage.getIcons().add(new Image(getClass().getResourceAsStream("/images/app.png")));
    stage.show();
    Windows.add("main", stage);
  }
}
